#ifndef CSERVER_H
#define CSERVER_H

#include "CUdpNetwork.h"
#include "CNetwork.h"
#include "CMoves.h"
#include "CAuthentification.h"
#include "CSync.h"
#include "CGetMap.h"
#include "../Models/MStaticData.h"

#include <iostream>

using namespace std;

class CServer : public QObject
{
    Q_OBJECT
    public:
        CServer();
        ~CServer();

    public slots:
        bool start();
        void new_connection(QTcpSocket* socket);
        void disconnect();
        void move(QTcpSocket* socket);

    private:
        CAuthentification *c_authentification;
        CSync *c_sync;
        CMoves *c_moves;
        CGetMap *c_get_map;

};

#endif // CSERVER_H
